package com.xb.sourest.adapter;

import com.xb.sourest.R;
import com.xb.sourest.bean.BannerBean;
import com.xd.navi.GlideUtils;
import com.zhpan.bannerview.BaseBannerAdapter;
import com.zhpan.bannerview.BaseViewHolder;

public  class BannerAdapter extends BaseBannerAdapter<BannerBean> {


    @Override
    protected void bindData(BaseViewHolder<BannerBean> holder, BannerBean data, int position, int pageSize) {
        GlideUtils.load(data.getImage(),holder.findViewById(R.id.banner_image));
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.banner_item;
    }
}
